package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: duanhongxiang
 * @Desc:
 * @create: 2024-09-10 09:24
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_bmap_region")
@ApiModel(value="百度地图行政区信息", description="百度地图行政区信息")
public class BmapRegion extends BaseEntity {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @OperateLogFiled(name = "行政区编码")
    @ApiModelProperty(value = "行政区编码")
    @TableField("ad_code")
    private String adCode;

    @OperateLogFiled(name = "行政区名称")
    @ApiModelProperty(value = "行政区名称")
    @TableField("ad_name")
    private String adName;

    @OperateLogFiled(name = "父级编码")
    @ApiModelProperty(value = "父级编码")
    @TableField("p_ad_code")
    private String pAdCode;

    @OperateLogFiled(name = "中心坐标")
    @ApiModelProperty(value = "中心坐标")
    @TableField("center")
    private String center;

    @OperateLogFiled(name = "层级 1省 2市 3区 4街道")
    @ApiModelProperty(value = "层级 1省 2市 3区 4街道")
    @TableField("level")
    private Integer level;

    @OperateLogFiled(name = "路径")
    @ApiModelProperty(value = "路径")
    @TableField("path_code")
    private Integer pathCode;

}
